package com.app.utils.web;

/**
 * Description 公共参数类
 * Created by 王伟
 * Date create on 17:04 2019/11/28.
 */
public class Param {

    /**
     *  项目类型等级枚举
     */
    public static int CATEGORY_LEVEL_ONE = 1;
    public static int CATEGORY_LEVEL_TWO = 2;

    /**
     * 提现金额限制
     */
    public static float minDrawMoney = 10;   //最小提现金额 单位元
    public static float maxDrawMoney = 500;   //最大提现金额 单位元

    /**
     * 新浪短域名生成接口
     */
    public static String sinaUrlApi="http://api.t.sina.com.cn/short_url/shorten.json?source=3271760578&url_long=";

    public static String appId = "wxb759ea4afaee0095";

    public static String sourceUrl = "https://www.ys168.vip/";
    public static String picUrl = sourceUrl + "images/uploads/";

    /**
     * 根据角色获取角色昵称
     * @param roleStr
     * @return
     */
    public static String getRoleName(int roleStr){
        String roleName = "游客";
        if(1 == roleStr){
            roleName = "普卡";
        }else if(2 == roleStr){
            roleName = "金卡";
        }else if(3 == roleStr){
            roleName = "白金卡";
        }else if(4 >= roleStr){
            roleName = "超级黑卡";
        }
        return roleName;
    }

    /**
     * 根据角色获取角色昵称颜色
     * @param roleStr
     * @return
     */
    public static String getRoleColor(String roleStr){
        String roleColor = "white";
        if("1".equals(roleStr)){
            roleColor = "#00CED1";
        }else if("2".equals(roleStr)){
            roleColor = "#008B8B";
        }else if("3".equals(roleStr)){
            roleColor = "#00688B";
        }else if("4".equals(roleStr)){
            roleColor = "#218868";
        }
        return roleColor;
    }

}
